<%@page import="com.shsh.safemanage.model.Department1"%>
<%@page import="com.shsh.safemanage.dao.DaoCreator"%>
<%@page import="com.shsh.safemanage.dao.DepartmentDao"%>
<%@ page language="java" pageEncoding="UTF-8"%>
<%@page import="com.shsh.safemanage.util.Constants"%>
<%@page import="com.shsh.safemanage.model.ManageGroup"%>
<%@page import="java.util.Set"%>

<%
{
	DepartmentDao mgDepartmentDao = DaoCreator.createDepartmentDao();
	Set<ManageGroup> manageGroupSet = (Set<ManageGroup>) session
			.getAttribute(Constants.SESSION_MANAGE_GROUP_SET);
	if (manageGroupSet != null) {
		for (ManageGroup manageGroup : manageGroupSet) {
			Department1 depart1 = mgDepartmentDao.getDepartment1ByID(manageGroup.getDepart1ID());
%>
<br />
<span style="margin-left: 90px"><%=depart1.getDepartmentName()%>-<%=manageGroup.getManageGroupName()%></span>
<a href="javascript:" onclick="deleteMappingManageGroup(<%=manageGroup.getId()%>, <%=manageGroup.getDepart1ID()%>)">删除</a>
<%
		}
	}
}
%>
